<?php

class Core_Form_Info extends Zend_Form {

    public function __construct($view) {
    
        $config = new Zend_Config_Ini("./config/form.info.ini" , "information");
        parent::__construct($config->info->voter);
        $this->setView($view);

        $validator = new Core_Validator();
        $qus_text = $validator->randomBrainFuck();
        $right_answer = $qus_text['right_answer'];
        $qus_text = trim($qus_text['value']);

        $e = $this->getElement("rq");
        $e->setValue($qus_text);

        $a = $this->getElement("rq_answer");
        $a->setDescription($a->getDescription() . ".正确答案是： " . $right_answer);
        
    }

}
